package com.glo.spreadsheet2db.services;

import java.io.IOException;
import java.util.List;

import com.glo.spreadsheet2db.model.Spreadsheet;
import com.google.gdata.util.ServiceException;

public interface Spreadsheet2DbService {
	
	Spreadsheet getSpreadsheetById(long id);
	
    Spreadsheet importSpreadsheet(String username, String password, String spreadsheetName) throws IOException, ServiceException;
    
    Spreadsheet importAndSaveSpreadsheet(String username, String password, String spreadsheetName) throws IOException, ServiceException;
    
    List<String> getSpreadsheetList(String username, String password) throws IOException, ServiceException;
    
    Spreadsheet saveSpreadsheet(Spreadsheet spreadsheet);

	boolean existsSpreadsheet(String userName, String password, String sheetName) throws IOException, ServiceException;
    
}
